package com.jt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author Cx
 * @stage JT Of Fourth stage
 * @creat 2020-12-16 14:14
 */
@TableName("tb_cart")
@Data
@Accessors(chain = true)
public class Cart extends BasePojo {

    private static final long serialVersionUID = 4070070919213732054L;

    @TableId(type = IdType.AUTO)
    private Long id; // 购物车主键
    private Long userId; // 用户id
    private Long itemId; // 商品id
    private String itemTitle; // 商品标题信息
    private String itemImage; // 商品图片
    private Long itemPrice; // 商品价格
    private Integer num; // 商品数量

}
